<template>
  <div>
    <h1>
      {{ message }}
    </h1>
    <button @click="reversebtn">按钮</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      message: "HELLO, WORLD",
    };
  },
  methods: {
    reversebtn() {
      return (this.message = this.message.split("").reverse().join(""));
    },
  },
};
</script>

<style scoped lang='less'>
</style>
